package com.yeyks.search.pojo.param;

import com.yeyks.search.pojo.model.base.EsPage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author shuai
 * @date 2019/10/08 15:56
 */
@Data
public class EsC2bHotelSearchParam extends EsPage implements Serializable {

    private static final long serialVersionUID = 4157268658687487393L;
    @ApiModelProperty(value = "城市名称")
    @NotBlank(message = "城市必填")
    private String city;

    @ApiModelProperty(value = "价格（单位：分）")
    @NotNull(message = "价格必填")
    private Integer price;

    @ApiModelProperty(value = "经度")
    @NotNull(message = "经度必填")
    private Double positionX;

    @ApiModelProperty(value = "纬度")
    @NotNull(message = "纬度必填")
    private Double positionY;

    @ApiModelProperty(value = "开始时间")
    @NotNull(message = "开始时间必填")
    private Date startDate;

    @ApiModelProperty(value = "结束时间")
    @NotNull(message = "结束时间必填")
    private Date endDate;

    @ApiModelProperty(value = "舒适度 1舒适 2高档 3豪华 4民宿专区")
    private String comfortLevel;

    @ApiModelProperty(value = "距离单位/米")
    private Integer distance = 5000;

    @ApiModelProperty(value = "抢单状态，0自动，1手动")
    private Integer manualPickOrder;

    @ApiModelProperty(value = "是否可用优惠券 0 不可用  1可用")
    private Integer enabledCoupon;

    @ApiModelProperty(value = "yyks,cn")
    private String sourceType;
}
